{% extends "_base.html" %}

{% block main %}

<form method="post" action="/signin">
  <h3>Sign In</h3>
  {% if error != null %}
  <div class="form-group">
    <p id="error" class="text-danger">{{ error }}</p>
  </div>
  {% endif %}
  <div class="form-group">
    <label>Email</label>
    <input name="email" type="email" class="form-control" placeholder="Email" value="{{ email }}">
  </div>
  <div class="form-group">
    <label>Password</label>
    <input name="password" type="password" class="form-control" placeholder="Password">
  </div>
  <div class="form-group">
    <button type="submit" class="btn btn-outline-primary">Submit</button>
  </div>
  <div class="form-group">
    <a href="/register">Don't have an account?</a>
  </div>
</form>

{% endblock %}
